package com.itheima.order.client;


import com.itheima.order.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;

@Component
@FeignClient("user-service")
public interface UserClient {

    @GetMapping("/address/{username}")
    List<Address> findByUsername(@PathVariable("username") String username);
}
